package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 群成员对象 group_member
 * 
 * @author ruoyi
 * @date 2025-09-12
 */
public class GroupMember extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private String id;

    /** 群组ID */
    @Excel(name = "群组ID")
    private String groupId;

    /** 成员ID */
    @Excel(name = "成员ID")
    private Long memberId;

    /** 群内昵称 */
    @Excel(name = "群内昵称")
    private String nickname;

    /** 成员类型 */
    @Excel(name = "成员类型")
    private String memberType;

    /** 加入时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "加入时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date joinTime;

    /** 是否退出群聊：0-未退出，1-已退出 */
    @Excel(name = "是否退出群聊：0-未退出，1-已退出")
    private Integer isLeave;

    /** 退出时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "退出时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date leaveTime;

    /** 邀请人ID，关联user表 */
    @Excel(name = "邀请人ID，关联user表")
    private String inviterId;

    /** 个人禁言状态：0-未禁言，1-已禁言 */
    @Excel(name = "个人禁言状态：0-未禁言，1-已禁言")
    private Integer isMute;

    /** 个人禁言结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "个人禁言结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date muteEndTime;

    /** 最后已读消息ID，关联message表 */
    @Excel(name = "最后已读消息ID，关联message表")
    private String lastReadMessageId;

    /** 是否删除：0-未删除，1-已删除 */
    @Excel(name = "是否删除：0-未删除，1-已删除")
    private Integer isDeleted;

    /** 版本号，用于乐观锁 */
    @Excel(name = "版本号，用于乐观锁")
    private Long version;

    /** 创建人 */
    @Excel(name = "创建人")
    private String creator;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }

    public void setGroupId(String groupId) 
    {
        this.groupId = groupId;
    }

    public String getGroupId() 
    {
        return groupId;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public void setNickname(String nickname)
    {
        this.nickname = nickname;
    }

    public String getNickname() 
    {
        return nickname;
    }

    public void setMemberType(String memberType) 
    {
        this.memberType = memberType;
    }

    public String getMemberType() 
    {
        return memberType;
    }

    public void setJoinTime(Date joinTime) 
    {
        this.joinTime = joinTime;
    }

    public Date getJoinTime() 
    {
        return joinTime;
    }

    public void setIsLeave(Integer isLeave) 
    {
        this.isLeave = isLeave;
    }

    public Integer getIsLeave() 
    {
        return isLeave;
    }

    public void setLeaveTime(Date leaveTime) 
    {
        this.leaveTime = leaveTime;
    }

    public Date getLeaveTime() 
    {
        return leaveTime;
    }

    public void setInviterId(String inviterId) 
    {
        this.inviterId = inviterId;
    }

    public String getInviterId() 
    {
        return inviterId;
    }

    public void setIsMute(Integer isMute) 
    {
        this.isMute = isMute;
    }

    public Integer getIsMute() 
    {
        return isMute;
    }

    public void setMuteEndTime(Date muteEndTime) 
    {
        this.muteEndTime = muteEndTime;
    }

    public Date getMuteEndTime() 
    {
        return muteEndTime;
    }

    public void setLastReadMessageId(String lastReadMessageId) 
    {
        this.lastReadMessageId = lastReadMessageId;
    }

    public String getLastReadMessageId() 
    {
        return lastReadMessageId;
    }

    public void setIsDeleted(Integer isDeleted) 
    {
        this.isDeleted = isDeleted;
    }

    public Integer getIsDeleted() 
    {
        return isDeleted;
    }

    public void setVersion(Long version) 
    {
        this.version = version;
    }

    public Long getVersion() 
    {
        return version;
    }

    public void setCreator(String creator) 
    {
        this.creator = creator;
    }

    public String getCreator() 
    {
        return creator;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("groupId", getGroupId())
            .append("memberId", getMemberId())
            .append("nickname", getNickname())
            .append("memberType", getMemberType())
            .append("joinTime", getJoinTime())
            .append("isLeave", getIsLeave())
            .append("leaveTime", getLeaveTime())
            .append("inviterId", getInviterId())
            .append("isMute", getIsMute())
            .append("muteEndTime", getMuteEndTime())
            .append("lastReadMessageId", getLastReadMessageId())
            .append("isDeleted", getIsDeleted())
            .append("version", getVersion())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("creator", getCreator())
            .toString();
    }
}
